import { RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: "system",
        component: { render: () => h(resolveComponent("router-view")) },
        meta: {
            title: "系统管理",
            iconNotActive: "icon-system",
            iconActive: "icon-system-active",
        },
        children: [
            {
                path: "departmentManage",
                component: () =>
                    import("@/views/DepartmentManage/DepartmentManage.vue"),
                meta: {
                    title: "成员管理",
                },
            },
            {
                path: "roleManage",
                component: () => import("@/views/RoleManage/RoleManage.vue"),
                meta: {
                    title: "角色管理",
                },
            },
            {
                path: "faceLibraryEditFacialSet",
                component: () =>
                    import(
                        "@/views/FaceLibraryEditFacialSet/FaceLibraryEditFacialSet.vue"
                    ),
                meta: {
                    title: "人脸管理",
                },
            },
            {
                path: "helpArticleManage",
                component: () =>
                    import("../views/HelpArticleManage/HelpArticleManage.vue"),
                meta: {
                    title: "文档管理",
                },
            },
            {
                path: "logLogin",
                component: () => import("@/views/LogLogin/LogLogin.vue"),
                meta: {
                    title: "登录日志",
                },
            },
            {
                path: "logHandle",
                component: () => import("@/views/LogHandle/LogHandle.vue"),
                meta: {
                    title: "操作日志",
                },
            },
        ],
    },
];

export default routes;
